#ifndef PRODUCT_H
#define PRODUCT_H

#include <QtCore>
#include <QString>
#include <QVector>
#include "supplier.h"


class Product
{
public:
    QString productName;
    QString unit;
    double quantity;
    QVector<Supplier> suppliers;

public:

    Product(QString _productName, QString _unit, double _quantity);
    Product();
    QString getName();
    int countSuppliers();
    QString getUnit();
    double getQuantity();
    Supplier getSupplier(int i);
    bool addSupplier(QString _supplierName, double _cost, int _productionTime, int _quantityAvalaiblePerDay);
    bool removeSupplier(int i);
};

#endif // PRODUCT_H
